﻿package me.nerik.util 
{
	import flash.utils.getTimer;
	/**
	 * ...
	 * @author erik
	 */
	public class Stopwatch
	{
		
		private static var c:String;
		private static var t:int;
		
		public static function start(c:String):void
		{
			Stopwatch.c = c;
			Stopwatch.t = getTimer();
		}
		
		public static function stop():void
		{
			trace(c + " : " + Number(getTimer() - Stopwatch.t));
		}
		
	}

}